﻿using System.Xml;

namespace Altairis.Nemesis.Gallery {
    internal static class ExtensionMethods {

        public static void AppendChildWithValue(this XmlElement e, string elementName, string innerText) {
            XmlElement childElement = e.OwnerDocument.CreateElement(elementName);
            childElement.InnerText = innerText;
            e.AppendChild(childElement);
        }

    }
}
